package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcPointCardBind;
import com.csun.cmny.provider.model.dto.card.PointCardBindDto;
import com.csun.cmny.provider.model.dto.card.PointCardBindQueryDto;
import com.csun.cmny.provider.model.vo.card.PointCardBindVO;
import com.github.pagehelper.PageInfo;

public interface DmcPointCardBindService extends IService<DmcPointCardBind> {

    /*
    * 绑定
    * */
    int bind(PointCardBindDto pointCardBindDto, LoginAuthDto loginAuthDto);

    /*
    * 解绑
    * */
    int unbind(Long deviceId);

    /*
    * 冻结
    * */
    int freeze(Long deviceId);

    /*
    * 解冻
    * */
    int unfreeze(Long deviceId);

    /*
    * 退卡
    * */
    int refund(Long deviceId);

    /*
    * 分页查询
    * */
    PageInfo<PointCardBindVO> listPage(PointCardBindQueryDto pointCardBindQueryDto);

}
